India survived a scare before managing to draw the first Test against England, who gained the psychological advantage after enjoying the upper-hand for the better part of the five days, in Rajkot, on Sunday.